//
//  DateBaseSingleton.h
//  UI - 豆瓣
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Movie.h"


@interface DateBaseSingleton : NSObject

+(instancetype)shareDataBase;

-(void)openDB;

-(void)createtabe;

-(void)insertMovie: (Movie *)movie;

-(NSMutableArray *)selectMovie;

-(void)createRegisterTable;

-(void)insertRegister: (NSString *)name passWord: (NSString *)password confilmPassWord: (NSString *) confilmPassWord phoneNum: (NSString *)phoneNum e_mail: (NSString *)e_mail;

-(NSMutableArray *)selectUser;

-(NSMutableArray *)selectDebarkUser;

-(void)createCollectTable;

-(void)insertCollectMovieName: (NSString *)movieName userName: (NSString *)userName movieId: (NSString  *)movieId;

-(NSMutableArray *)selectCollect: (NSString *)name;

-(void)deleteMovie:(NSString *)name;

-(NSMutableArray *)selectMovieCollect;

@end
